﻿
//Author: 张亚涛
//createtime:2015-12-26 22:34:49
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class UaerCom
    {
        public UaerCom()
        { }
        public UaerCom(IDataReader reader)
        {
            _id = int.Parse(reader["ID"].ToString());
            if (reader["UserID"] != DBNull.Value)
            {
                _userID = long.Parse(reader["UserID"].ToString());
            }
            if (reader["CommuntyID"] != DBNull.Value)
            {
                _communtyID = long.Parse(reader["CommuntyID"].ToString());
            }
        }

        #region 数据库字段
        private int? _id;
        private long? _userID;
        private long? _communtyID;
        #endregion

        #region 字段属性
        /// <summary>
        /// 主键
        /// </summary>
        public int? Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 员工ID
        /// </summary>
        public long? UserID
        {
            set { _userID = value; }
            get { return _userID; }
        }
        /// <summary>
        /// 小区ID
        /// </summary>
        public long? CommuntyID
        {
            set { _communtyID = value; }
            get { return _communtyID; }
        }
        #endregion
    }
}